let click = document.querySelector('.send');
let word = document.querySelector('.te');
click.onclick = function () {
    click.disabled = true;
    let id ;
    if(id){
        clearInterval(id);
    }
    let time = 6;
    id = setInterval(function () {
        time--;
        if (time > 0) {
            word.innerHTML = time + '秒之后获取验证码';
        }
        if (time === 0) {
            word.innerHTML = '重获验证码';
            click.disabled = false;
        }
    }, 1000)
}